<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <script type="text/javascript" charset="UTF-8"
                src="http://rescdn.qqmail.com/node/ww/wwopenmng/js/sso/wwLogin-1.0.0.js"></script>
        <script type="text/javascript" src="./jquery-3.3.1.js"></script>
    </head>
<body>
    helloworld
<div id="code"></div>
</body>

<script>
    var data = <%=request.getAttribute("jsapi_config")%>;
    window.WwLogin({
        "id":"code",
        "appid":data.appid,
        "agentid":data.agentid,
        "redirect_uri":data.redirect_uri,
        "state":"ycoa",
        "href":""
    });
</script>
</html>